import type { App } from "vue";
import { ControlType, registerControlProvider } from "@ibiz-template/runtime";
import IBizToolbarControl from "./i-biz-toolbar-control.vue";
import { ToolbarProvider } from "./i-biz-toolbar-control.provider";

export const IBizToolbar = {
  install(v: App) {
    v.component("IBizToolbarControl", IBizToolbarControl);
    registerControlProvider(ControlType.TOOLBAR, () => new ToolbarProvider());
  },
};
